package com.guldan.jaina.provider;

import com.guldan.core.dubbo.client.ResponseDTO;
import com.guldan.core.search.Pagination;
import com.guldan.jaina.dto.news.NewsDTO;
import com.guldan.jaina.dto.news.NewsSearchDTO;

/**
 * Created by Silas.
 * Date: 2017/1/24
 * Time: 11:58
 */
public interface INewsProvider {


    ResponseDTO<NewsDTO> get(Integer newsId);


    ResponseDTO<NewsDTO> save(NewsDTO dto);


    ResponseDTO<Boolean> delete(Integer newsId);


    ResponseDTO<Pagination<NewsDTO>> list(NewsSearchDTO searchDTO);


}
